class SingleHelpDetailBean {
  SingleHelpDetailBean({
    this.contentId,
    this.helpCategoriesId,
    this.contentTitle,
    this.contentStatus,
    this.articelHomePic,
    this.showNum,
    this.likesNum,
    this.shareNum,
    this.createTime,
    this.creatorId,
    this.creatorName,
    this.updateTime,
    this.updatorId,
    this.updatorName,
    this.contentContent,
    this.baseCustomer,
    this.filePathList,
  });

  SingleHelpDetailBean.fromJson(dynamic json) {
    contentId = json['contentId'];
    helpCategoriesId = json['helpCategoriesId'];
    contentTitle = json['contentTitle'];
    contentStatus = json['contentStatus'];
    articelHomePic = json['articelHomePic'];
    showNum = json['showNum'];
    likesNum = json['likesNum'];
    shareNum = json['shareNum'];
    createTime = json['createTime'];
    creatorId = json['creatorId'];
    creatorName = json['creatorName'];
    updateTime = json['updateTime'];
    updatorId = json['updatorId'];
    updatorName = json['updatorName'];
    contentContent = json['contentContent'];
    baseCustomer = json['baseCustomer'] != null
        ? BaseCustomer.fromJson(json['baseCustomer'])
        : null;
    if (json['filePathList'] != null) {
      filePathList = [];
      json['filePathList'].forEach((v) {
        filePathList?.add(FilePathList.fromJson(v));
      });
    }
  }
  String? contentId;
  String? helpCategoriesId;
  String? contentTitle;
  String? contentStatus;
  String? articelHomePic;
  num? showNum;
  num? likesNum;
  num? shareNum;
  String? createTime;
  String? creatorId;
  String? creatorName;
  String? updateTime;
  String? updatorId;
  String? updatorName;
  String? contentContent;
  BaseCustomer? baseCustomer;
  List<FilePathList>? filePathList;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['contentId'] = contentId;
    map['helpCategoriesId'] = helpCategoriesId;
    map['contentTitle'] = contentTitle;
    map['contentStatus'] = contentStatus;
    map['articelHomePic'] = articelHomePic;
    map['showNum'] = showNum;
    map['likesNum'] = likesNum;
    map['shareNum'] = shareNum;
    map['createTime'] = createTime;
    map['creatorId'] = creatorId;
    map['creatorName'] = creatorName;
    map['updateTime'] = updateTime;
    map['updatorId'] = updatorId;
    map['updatorName'] = updatorName;
    map['contentContent'] = contentContent;
    if (baseCustomer != null) {
      map['baseCustomer'] = baseCustomer?.toJson();
    }
    if (filePathList != null) {
      map['filePathList'] = filePathList?.map((v) => v.toJson()).toList();
    }
    return map;
  }
}

class FilePathList {
  FilePathList({
    this.fileNo,
    this.fileName,
    this.fileSort,
    this.fileType,
    this.filePath,
    this.fileOldName,
    this.fileStatus,
    this.uploader,
    this.uploadTime,
    this.businessNo,
  });

  FilePathList.fromJson(dynamic json) {
    fileNo = json['fileNo'];
    fileName = json['fileName'];
    fileSort = json['fileSort'];
    fileType = json['fileType'];
    filePath = json['filePath'];
    fileOldName = json['fileOldName'];
    fileStatus = json['fileStatus'];
    uploader = json['uploader'];
    uploadTime = json['uploadTime'];
    businessNo = json['businessNo'];
  }
  String? fileNo;
  String? fileName;
  num? fileSort;
  String? fileType;
  String? filePath;
  String? fileOldName;
  num? fileStatus;
  String? uploader;
  num? uploadTime;
  String? businessNo;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['fileNo'] = fileNo;
    map['fileName'] = fileName;
    map['fileSort'] = fileSort;
    map['fileType'] = fileType;
    map['filePath'] = filePath;
    map['fileOldName'] = fileOldName;
    map['fileStatus'] = fileStatus;
    map['uploader'] = uploader;
    map['uploadTime'] = uploadTime;
    map['businessNo'] = businessNo;
    return map;
  }
}

class BaseCustomer {
  BaseCustomer({
    this.customerId,
    this.nickName,
    this.telPhone,
    this.password,
    this.customerLevel,
    this.customerTag,
    this.customerAddress,
    this.avatar,
    this.sex,
    this.birthday,
    this.userMoney,
    this.userIntegral,
    this.createTime,
    this.updateTime,
    this.loginTime,
    this.loginIp,
    this.ifDisable,
    this.deviceRegistrationId,
    this.captcha,
  });

  BaseCustomer.fromJson(dynamic json) {
    customerId = json['customerId'];
    nickName = json['nickName'];
    telPhone = json['telPhone'];
    password = json['password'];
    customerLevel = json['customerLevel'];
    customerTag = json['customerTag'];
    customerAddress = json['customerAddress'];
    avatar = json['avatar'];
    sex = json['sex'];
    birthday = json['birthday'];
    userMoney = json['userMoney'];
    userIntegral = json['userIntegral'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
    loginTime = json['loginTime'];
    loginIp = json['loginIp'];
    ifDisable = json['ifDisable'];
    deviceRegistrationId = json['deviceRegistrationId'];
    captcha = json['captcha'];
  }
  String? customerId;
  String? nickName;
  String? telPhone;
  String? password;
  num? customerLevel;
  String? customerTag;
  String? customerAddress;
  String? avatar;
  String? sex;
  String? birthday;
  num? userMoney;
  num? userIntegral;
  String? createTime;
  String? updateTime;
  String? loginTime;
  String? loginIp;
  String? ifDisable;
  String? deviceRegistrationId;
  String? captcha;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['customerId'] = customerId;
    map['nickName'] = nickName;
    map['telPhone'] = telPhone;
    map['password'] = password;
    map['customerLevel'] = customerLevel;
    map['customerTag'] = customerTag;
    map['customerAddress'] = customerAddress;
    map['avatar'] = avatar;
    map['sex'] = sex;
    map['birthday'] = birthday;
    map['userMoney'] = userMoney;
    map['userIntegral'] = userIntegral;
    map['createTime'] = createTime;
    map['updateTime'] = updateTime;
    map['loginTime'] = loginTime;
    map['loginIp'] = loginIp;
    map['ifDisable'] = ifDisable;
    map['deviceRegistrationId'] = deviceRegistrationId;
    map['captcha'] = captcha;
    return map;
  }
}
